﻿using System.ComponentModel.Composition;
using System.Diagnostics;
using MIXer.Contracts.ViewModels;
using System.Threading;

namespace MIXer.ViewModels
{
    [Export(typeof(IHomeViewModel))]
    public class HomeViewModel : Tab, IHomeViewModel
    {
        #region Constructors
        public HomeViewModel()
            : base("Home")
        {
        }
        #endregion

        #region Methods
        public void GoTo(string address)
        {
            Busy("Opening " + address);
            Process.Start(new ProcessStartInfo(address));
            Free();
        }
        #endregion
    }
}
